package com.ruoyi.caigou.mapper;

import com.ruoyi.system.api.domain.caigou.BuyBackOrderDetail;

import java.util.List;

/**
 * @author wangenhao
 * @interfaceName BuyBackOrderDetailMapper
 * @description
 * @date 2024-10-27 下午6:02
 */
public interface BuyBackOrderDetailMapper {

    /**
     * 查询采购退货详情单
     *
     * @param id 采购退货详情单主键
     * @return 采购退货详情单
     */
    public BuyBackOrderDetail selectBuyBackOrderDetailById(Integer id);

    /**
     * 查询采购退货详情单列表
     *
     * @param buyBackOrderDetail 采购退货详情单
     * @return 采购退货详情单集合
     */
    public List<BuyBackOrderDetail> selectBuyBackOrderDetailList(BuyBackOrderDetail buyBackOrderDetail);

    /**
     * 新增采购退货详情单
     *
     * @param buyBackOrderDetail 采购退货详情单
     * @return 结果
     */
    public int insertBuyBackOrderDetail(BuyBackOrderDetail buyBackOrderDetail);

    /**
     * 修改采购退货详情单
     *
     * @param buyBackOrderDetail 采购退货详情单
     * @return 结果
     */
    public int updateBuyBackOrderDetail(BuyBackOrderDetail buyBackOrderDetail);

    /**
     * 删除采购退货详情单
     *
     * @param id 采购退货详情单主键
     * @return 结果
     */
    public int deleteBuyBackOrderDetailById(Integer id);

    /**
     * 批量删除采购退货详情单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBuyBackOrderDetailByIds(Integer[] ids);

    int deleteBuyBackOrderDetailByBuyBackOrderId(Integer id);

    List<BuyBackOrderDetail> selectBuyBackOrderDetailByBuyBackOrderId(Integer id);

    int updateBuyBackOrderDetailByOrderIdGoodsId(BuyBackOrderDetail buyBackOrderDetail);

    BuyBackOrderDetail getBuyBackOrderDetailByOrderIdGoodsId(BuyBackOrderDetail buyBackOrderDetail);
}
